home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / VTXXX.ZIP / vtxxx.txt
Text File  |  1995-04-27  |  10KB  |  258 lines

  1. As many people keep asking for the control and escape sequences
  2. of the vtxx series, I have put SOME of them together in this 
  3. summary.
  4.  
  5. For the full command set or any other details (especially on 
  6. graphics) it is better to dig up a manual somewhere 
  7. or CALL DEC(!) (usually DEC-Direct) 
  8. and have a manual sent (They actually do it).
  9.  
  10.  
  11. The folowing sequences are written within < > and using spaces 
  12. for easier reading. DO NOT type the spaces or the < > unless 
  13. they are explicitly given as  "space" or "<", ">" respectively.
  14. The term chr(n), where n is a value of 0 through 255, denotes a
  15. character with that decimal value.
  16.  
  17. The letter P followed by a label (or just "n")  stands for a 
  18. numerical value (ascii digits i.e. 25). A parameter can be
  19. omitted, in which case it will assume a certain default 
  20. value (denoted as D:n). If a sequence can take more than 
  21. one parameter (given as p followed by a label) then the 
  22. paramters are separated by semicolons (;).
  23.  
  24. mnemonic               7bit equivalent     8bit equivalent
  25. ------------           ---------------     ---------------
  26. BEL (sound beeper)     <chr(7)>            <chr(7)>
  27. BS  (backspace)        <chr(8)>            <chr(8)>
  28. HT  (tab)              <chr(9)>            <chr(9)>
  29. LF  (line feed)        <chr(10)>           <chr(10)>
  30. FF  (form feed)        <chr(12)>           <chr(12)>
  31. CR  (cariage return)   <chr(13)>           <chr(13)>
  32. SO  (shift out,G1->GL) <chr(14)>           <chr(14)>
  33. SI  (shift in, G0->GL) <chr(15)>           <chr(15)>
  34. DC1 (xon (dev ctrl 1)) <chr(17)>           <chr(17)>
  35. DC3 (xoff(dev ctrl 2)) <chr(19)>           <chr(19)>
  36. ESC                    <chr(27)>           <chr(27)>
  37. IND (index)            <ESC D>             <chr(132)>
  38. NEL (next line)        <ESC E>             <chr(133)>
  39. RI  (reverse index)    <ESC M>             <chr(141)>
  40. SS2 (single shift 2)   <ESC N>             <chr(142)>
  41. SS3 (single shift 3)   <ESC O>             <chr(143)>
  42. DCS (dev ctrl string)  <ESC P>             <chr(144)>
  43. CSI                    <ESC [>             <chr(155)>
  44. ST  (string terminator)<ESC \>             <chr(156)>
  45.  
  46. Note: the 8bit equivalents are only possible on the vt2xx and
  47.       vt3xx terminals. They can always be sent TO the termial
  48.       but will only be sent FROM the terminal if in 8bit
  49.       control mode.
  50.  
  51.  
  52. The columns 1, 1a, 2 and 3 give the availability of that
  53. sequence on the vt100/101, vt102/131/132, vt2x0 and vt3x0 
  54. terminals respectively.
  55.  
  56. Control commands sent TO the terminal:
  57.  
  58. sequence      atcion                           1 1a 2 3
  59. ------------- -------------------------------- - -  - -
  60. <CSI Pn A>    cursor up (D:1)                  * *  * *
  61. <CSI Pn B>    cursor down (D:1)                * *  * *
  62. <CSI Pn C>    cursor right (D:1)               * *  * *
  63. <CSI Pn C>    cursor left (D:1)                * *  * *
  64. <CSI H>       cursor home (top left corner)    * *  * *
  65. <CSI Pline ; Pcolumn H>
  66.               set cursor to line and column    * *  * *
  67.  
  68. <CSI Ptop ; Pbottom r>
  69.               set top and bottom lines of the scroll
  70.               region (lines 1..24)             * *  * *
  71.  
  72. <CSI Pn M>    delete n lines (D:1)               *  * *
  73. <CSI Pn L>    insert n lines (D:1)               *  * *
  74. <CSI Pn P>    delete n characters (D:1)          *  * *
  75. <CSI Pn @>    insert n characters (D:1)          *  * *
  76.  
  77. <CSI Pmode J> erase in display: mode is of     * *  * *
  78.               D:0 (or none) cursor to end 
  79.               1 beginning to cursor
  80.               2 entire screen
  81. <CSI Pmode K> erase in line: mode is of        * *  * *
  82.               D:0 (or none) cursor to end
  83.               1 beginning to cursor
  84.               2 entire line
  85. <CSI Pn X>    erase n characters                    * *
  86.  
  87. <CSI pattribute m>
  88.               set character attribute(s)
  89.               D:0 (or none) clear all          * *  * *
  90.               1 set bold                       * *  * *
  91.               4 set underline                  * *  * *
  92.               5 set blink                      * *  * *
  93.               7 set reverse                    * *  * *
  94.               22 turn bold off only                 * *
  95.               24 turn underline off only            * *
  96.               25 turn blinking off only             * *
  97.               27 turn reverse off only              * *
  98. (<CSI 0 ; 7 m> will reset the attributes and then set reverse)
  99.  
  100. <ESC # 5>     single-width single-height line  * *  * *
  101. <ESC # 6>     double-width single-height line  * *  * *
  102. <ESC # 3>     double-width double-height top   * *  * *
  103. <ESC # 4>     double-width double-height bottom* *  * *
  104.  
  105. <ESC 7>       save cursor position and attribs * *  * *
  106. <ESC 8>       restore to saved values          * *  * *
  107.  
  108. <CSI 4 h>     set insert mode                    *  * *
  109. <CSI 4 l>     set overtype mode                  *  * *
  110.  
  111. <CSI ? 25 h>  visible cursor                        * *
  112. <CSI ? 25 l>  invisible cursor                      * *
  113.  
  114. <CSI 2 h>     lock keyboard                    * *  * *
  115. <CSI 2 l>     unlock keyboard                  * *  * *
  116.  
  117. <CSI 20 h>    new line mode                    * *  * *
  118. <CSI 20 l>    ine feed mode                    * *  * *
  119.  
  120. <CSI ? 8 h>   autorepeat key                   * *  * *
  121. <CSI ? 8 l>   no autorepeat                    * *  * *
  122.  
  123. <CSI ? 7 h>   autowrap key                     * *  * *
  124. <CSI ? 7 l>   no autowrap                      * *  * *
  125.  
  126. <CSI ? 1 h>   cursor application keys          * *  * *
  127. <CSI ? 1 l>   cursor keys                      * *  * *
  128.  
  129. <ESC =>       application numeric block        * *  * *
  130. <ESC ">">     numeric block                    * *  * *
  131.  
  132. <CSI ? 5 h>   light background                 * *  * *
  133. <CSI ? 5 l>   dark background                  * *  * *
  134.  
  135. <CSI ? 3 h>   132 columns                      * *  * *
  136. <CSI ? 3 l>   80 columns                       * *  * *
  137.  
  138. <CSI ? 6 h>   move cursor withing margins      * *  * *
  139. <CSI ? 6 l>   move cursor absolute             * *  * *
  140.  
  141. <CSI c>       (primary) device attrib. request * *  * *
  142.               response is: <CSI ? plist c>
  143. <CSI 6 n>     cursor position report           * *  * *
  144.               response is: <CSI Pline;Pcolumn R>
  145.  
  146.  
  147.  
  148.  
  149. user definable keys (UDKs) on vt2x0 and vt3x0:
  150. ----------------------------------------------
  151.  
  152. <DCS Pclear ; Plock | Pkey1 / Pstring1 ; ... Pkeyn / Pstringn ST>
  153.  
  154. clear : D:0: clear all keys before loading
  155.         1: clear this key before loading
  156.  
  157. lock  : 0: lock the keys
  158.         D:1: do not lock the keys
  159.  
  160. key   : numeric key value send in escape sequence of this key.
  161.         see: "Control commands sent FROM the terminal"
  162.  
  163. string: string to send encoded as two digits-per-character hexadecimals
  164.  
  165.  
  166. download a soft character font for the vt2x0 and vt3x0:
  167. -------------------------------------------------------
  168.  
  169. <DCS Pfn ; Pcn ; Pec ; Pcmw ; Pw ; Pt ; Pcmh ; Pcss ; {
  170.  Dscs Sxbp1 ; Sxbp2 ; ... ; Sxbpn ST>
  171.  
  172. fn : font number               0 or 1
  173. cn : starting character (position of first character send
  174.      in character set)         0..95
  175. ec : erase control             0..2
  176. cmw: character matrix width    0..6
  177. w  : font width                0..2
  178. t  : text or full-cell         0..2
  179. cmh: character matrix height   0..12
  180. css: character set size        0..1
  181. Dscs:define character set name <"space"../ "space"../ F>
  182. Sxbpn: sixel bit patterns      
  183.        <sixel ; sixel ; .. ; sixel / sixel ; ... >
  184.  
  185.  
  186.  
  187.  
  188. Control commands sent FROM the terminal:
  189.  
  190. sequence      key                              1 1a 2 3
  191. ------------- -------------------------------- - -  - -
  192. <CSI A>       cursor key up    }               * *  * *
  193. <CSI B>       cursor key down  }  cursor key   * *  * *
  194. <CSI C>       cursor key right }  mode         * *  * *
  195. <CSI C>       cursor key left  }               * *  * *
  196.  
  197. <SS3 A>       cursor key up    }  application  * *  * *
  198. <SS3 B>       cursor key down  }  cursor key   * *  * *
  199. <SS3 C>       cursor key right }  mode         * *  * *
  200. <SS3 C>       cursor key left  }               * *  * *
  201.  
  202.  
  203. <SS3 P>       PF1                              * *  * *
  204. <SS3 Q>       PF2                              * *  * *
  205. <SS3 R>       PF3                              * *  * *
  206. <SS3 S>       PF4                              * *  * *
  207.  
  208. <CSI 1 ~>     Find                                  * *
  209. <CSI 2 ~>     Insert Here                           * *
  210. <CSI 3 ~>     Remove                                * *
  211. <CSI 4 ~>     Select                                * *
  212. <CSI 5 ~>     Prev Screen                           * *
  213. <CSI 6 ~>     Next Screen                           * *
  214. <CSI 1 7 ~>   F6                                    * *
  215. <CSI 1 8 ~>   F7                                    * *
  216. <CSI 1 9 ~>   F8                                    * *
  217. <CSI 2 0 ~>   F9                                    * *
  218. <CSI 2 1 ~>   F10                                   * *
  219. <CSI 2 3 ~>   F11                                   * *
  220. <CSI 2 4 ~>   F12                                   * *
  221. <CSI 2 5 ~>   F13                                   * *
  222. <CSI 2 6 ~>   F14                                   * *
  223. <CSI 2 8 ~>   Help                                  * *
  224. <CSI 2 9 ~>   Do                                    * *
  225. <CSI 3 1 ~>   F17                                   * *
  226. <CSI 3 2 ~>   F18                                   * *
  227. <CSI 3 3 ~>   F19                                   * *
  228. <CSI 3 4 ~>   F20                                   * *
  229.  
  230.  
  231. key codes of the numeric keypad in:            * *  * *
  232. numeric application mode    key
  233. ---     -------             ---
  234. <0>     <SS3 p>              0
  235. <1>     <SS3 q>              1
  236. <2>     <SS3 r>              2
  237. <3>     <SS3 s>              3
  238. <4>     <SS3 t>              4
  239. <5>     <SS3 u>              5
  240. <6>     <SS3 v>              6
  241. <7>     <SS3 w>              7
  242. <8>     <SS3 x>              8
  243. <9>     <SS3 y>              9
  244. <->     <SS3 m>              -
  245. <,>     <SS3 l>              ,
  246. <.>     <SS3 n>              .
  247. <CR>    <SS3 M>              enter
  248.  
  249. //////////////////////////////////////////////////////
  250. // Robert Frank                                     //
  251. // frank@urz.unibas.ch        (061) 321 99 67       //
  252. //                                                  //
  253. // Institute for Informatics University Basel       //
  254. // Mittlere Strasse 142                             //
  255. // CH-4056 Basel                                    //
  256. // Switzerland                                      //
  257. //////////////////////////////////////////////////////
  258.